﻿using System;

namespace TidyBlog.Data.Mapping
{
    /// <summary>
    /// 数据表特性
    /// </summary>
    public class TableAttribute : Attribute
    {
        /// <summary>
        /// 表名
        /// </summary>
        public string Name { get; set; }
        /// <summary>
        /// 是否忽略创建命令
        /// </summary>
        public bool IsIgnoreInsert { get; set; }
        /// <summary>
        /// 是否在插入命令后获取新记录的编号
        /// </summary>
        public bool IsSelectLastIdAfterInsert { get; set; }
        /// <summary>
        /// 是否忽略读取命令
        /// </summary>
        public bool IsIgnoreRead { get; set; }
        /// <summary>
        /// 是否忽略更新命令
        /// </summary>
        public bool IsIgnoreUpdate { get; set; }
        /// <summary>
        /// 是否忽略删除命令
        /// </summary>
        public bool IsIgnoreDelete { get; set; }
        /// <summary>
        /// 是否忽略列表命令
        /// </summary>
        public bool IsIgnoreList { get; set; }
    }
}
